package com.blockchainenergy.info.line;

import com.blockchainenergy.common.CarbonTools;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
public class LinePlate {
    private Integer from;
    private Integer type;
    private Double value;

    public LinePlate(Integer i,Integer j) throws Exception {
        this.from = CarbonTools.derection(i,j);
        this.type = CarbonTools.erank(this.from);
        this.value = CarbonTools.currente(i);
    }
}
